﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Login.Master" Inherits="System.Web.Mvc.ViewPage<LoginsView>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Login
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


    <div style="width: 350px;" align="left">
        <div class="box">
            <h2>
                <a href="#" id="toggle-box1" class="title">Login</a>
            </h2>
            <div class="block" id="box1">
                <%Html.EnableClientValidation(); %>
                <%
                    using (Html.BeginForm("Login","Account",FormMethod.Post,new {id="Accountform"}))
                    {%>                     
                <fieldset>
                    <legend>Login</legend>
                    <%=Html.ValidationSummary()%>
                    <table>
                        <tr>
                            <td colspan="2">
                                <label>
                                    Complete su ingreso.</label>
                            </td>
                        </tr>
                        <tr>
                            <td>                                
                                <%=Html.LabelFor(c=> c.UserName) %>                                
                            </td>
                            <td>
                                <%=Html.EditorFor(c=> c.UserName) %>
                                <%=Html.ValidationMessageFor(c=> c.UserName,"*") %>
                            </td>
                        </tr>
                        <tr>
                            <td>                            
                                <%=Html.LabelFor(c=> c.Password) %>
                            </td>
                            <td>
                                <%=Html.EditorFor(c=> c.Password) %>
                                <%=Html.ValidationMessageFor(c=> c.Password,"*") %>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2"> 
                            <br />                                
                                <%=Url.SubmitButton("Ingresar","Ingresar","Login","Account") %>                                                        
                            <br />                            
                            </td>                            
                        </tr>                        
                    </table>
                </fieldset>
                
                <fieldset>
                    <legend>Registro</legend>
                    <p>
                        Si todavia no tienes una cuenta, por favor create una nueva cuenta para ingresar.</p>
                        <%=Url.SubmitButton("Crear Cuenta","Create","NewAccount","Account") %>
                </fieldset>
                <%} %>
            </div>
        </div>
    </div>
</asp:Content>
